package com.lvm.app.api.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 文件记录
 * </p>
 *
 * @author zhouxf
 * @since 2021-03-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("lvm_file_rec")
@ApiModel(value="LvmFileRec对象", description="文件记录")
public class LvmFileRec extends Model<LvmFileRec> {

    private static final long serialVersionUID = 1L;

        /**
        * 文件Id
        */
    @ApiModelProperty(value = "文件Id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

        /**
        * 文件URL
        */
    @ApiModelProperty(value = "文件URL")
    private String fileUrl;

    @ApiModelProperty(value = "parentFileNo")
    private String parentFileNo;

    private String hisFileDir;

        /**
        * 创建时间
        */
    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

        /**
        * 更新时间
        */
    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime modifyTime;

        /**
        * md5
        */
    @ApiModelProperty(value = "md5")
    private String md5;

    @TableField(exist = false)
    private boolean fileExists;

        /**
        * 文件NO
        */
    @ApiModelProperty(value = "文件NO")
    private String fileNo;

        /**
        * 文件类型
        */
    @ApiModelProperty(value = "文件类型(1:视频 2:图片)")
    private Integer fileType;

    @ApiModelProperty(value = "视频时长")
    private Long videoTimeLong;

        /**
        * 后缀
        */
    @ApiModelProperty(value = "后缀")
    private String suffix;

        /**
        * 文件路径
        */
    @ApiModelProperty(value = "文件路径")
    private String fileDir;

        /**
        * 大小
        */
    @ApiModelProperty(value = "大小")
    private Long size;

        /**
        * 索引Id
        */
    @ApiModelProperty(value = "索引Id")
    private Integer indexId;
}